/**
 * Copyright [2019] [LiBo/Alex of copyright liboware@gmail.com ]
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.infodb.function.user;

import com.hyts.infodb.enums.SystemConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.function.Function;

/**
 * @project-name:infodb
 * @package-name:com.hyts.infodb.function
 * @author:LiBo/Alex
 * @create-date:2020-02-23 11:08
 * @copyright:libo-alex4java
 * @email:liboware@gmail.com
 * @description:
 */
@Slf4j
@Component
public class UserFunction implements Function<String,String> {
    String DEFAULT_LAST_LOGIN_TEXT = "您上次登录的时间 - ";

    String DEFAULT_LAST_LOGIN_TEXT = "您上次登录的时间 - ";

    @Override
    public String apply(String s) {
        log.info("进入调用方法方法操作");
        return DEFAULT_LAST_LOGIN_TEXT+s;
    }

    @Override
    public <V> Function<V, String> compose(Function<? super V, ? extends String> before) {
        return null;
    }

    @Override
    public <V> Function<String, V> andThen(Function<? super String, ? extends V> after) {
        return null;
    }
}
